sysroot: Cache an OstreeRepo instance
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 17 Apr 2015 13:00:17 +0000 (09:00 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Fri, 17 Apr 2015 15:19:08 +0000 (11:19 -0400)
commita6bbcf2ba7b8c6e8c478bd776e1042bc7990b942
treee94c9af3bbcae07d34bf6909011982d7558dda2f
parent6a7b9defb8d9d3ccc762fc11731092b4634d611c
sysroot: Cache an OstreeRepo instance

Rather than returning a new OstreeRepo instance in each call to
ostree_sysroot_get_repo(), cache one internally so the same instance
is returned each time.
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c